Solutions to contests run on hackerearth ,codechef and hackerrank