Bilue interview question

codility techcnical test online - very hard