Home task from Algo_1 course from Coursera.