Second Commit
Working code but failed on codechef