All Night Coding on Hacker Earth .... Solutions to a few Problems