Psiog Digital interview question

how do u approach this problem