Grehack 2018 qualification challenge

Detailed write-up of Grehack 2018 qualification challenge.