Original solution of second task

This is the original solution of the second Ruby task by Kristian Azmanov