Slalom Build Interview Question

Python coding question, theoretical ones