Flipkart Machine coding round
Flipkart Machine Coding Challenge: Building a Static Email App
Just finished the machine coding round for Flipkart, and it was quite an interesting experience! Around 15 of us were on the call, all tackling the same challenge within a 90-minute timeframe.
The task was to build a static email application with the following core functionalities:
Layout: A two-panel interface – a left sidebar for the inbox and a larger right panel for detailed email viewing.
Data: We were provided with hardcoded email data by the interviewer.
Inbox View (Left Panel): A scrollable list displaying individual emails.
Click Interaction: Selecting an email in the list should:
Visual States:
Currently Reading: The selected email in the list should have a subtle yellow background.
Read: Previously opened emails in the list should have a light grey background.
Unread: All unopened emails should have a white background.
Email Detail View (Right Panel): Upon selecting an email, the right panel should display:
Persistence: Both the "delete email" and "mark as read/unread" actions should persist across multiple hypothetical visits to the application.
Bonus Challenge:
All of the code should be written in HTML, CSS and Vanilla JavaScript.
By God's grace I cleared the round.