Facebook hackercup - problem solution in javascript | Heykuki News