Added logic to problem 424