Instec interview question

typical algorithm tests