Truweight interview question

Basic logic testing coding questions