KoderLabs interview question

Logic building questions, some pseudocode, sequences.