Solution for [Alpha 2010](https://codility.com/demo/take-sample-test/alpha2010/) task.