Design keyboard and mouse input tracker | Amazon Interview Question