Sigma Technology interview question

All technical questions are from here: https://open.kattis.com/