Fast Enterprises interview question

Simple coding questions, mostly