Version with printDesk method.
Homework 1,Task 17

Update: outOfArray fixed