Krossark interview question

puzzels