Add solutions for first spbsu gym#1. todo - need to fix O