Sberbank interview question

Basic questions on PL and algorithms + leetcode medium