Nebius Interview Question

Basic coding & logic questions.