BJIT interview question

Knowledge about algorithm