Reverse Engineering Problem 2 | CodeChef