Fundamentals that you always need to know - Flushing problem while taking character input