Luxoft interview question

Pivor number easy leetcode task