Solve Algorithms | HackerRank