Permalink
Find file
f1b07f8 Jul 3, 2016
44 lines (31 sloc) 577 Bytes

Reverse string

Description

Write a JavaScript function that reverses a string.

Input

  • The input will consist of an array containing one string

Output

  • The output should be consisted of one line - the reversed string

Constraints

  • Time limit: 0.2s
  • Memory limit: 16MB

Sample tests

Sample Test 1

Input

[ 'sample' ]

Output

elpmas

Sample Test 2

Input

[ 'qwertytrewq' ]

Output

qwertytrewq

Submission

  • Submit your code here