solutions to problems on hackerearth.com