Flexiple interview question

Live coding rounds and basics