Google · Sr Frontend Engineer · Rejected
Rounds
Together AI - FE Technical Phone Screen
Questions asked
Task: Create a countdown timer
Requirements:
• Core Logic: The timer must count down from 10 to 0 seconds.
• Controls: Provide two buttons:
• A dual-purpose Start / Pause button that toggles functionality and updates its text label dynamically based on state.
• A Reset button that stops the timer and returns the countdown to 10.
• Dynamic Color Coding: The text color of the timer display must dynamically update based on the remaining time:
• Green: More than 7 seconds remaining (> 7)
• Yellow: Between 3 and 7 seconds remaining (>= 3 and <= 7)
• Red: Less than 3 seconds remaining (< 3)
