Hackerearth solutions