Pergunta de entrevista da empresa Ooyala

Implement a function that accepts continuous stream of speed and a flag(true/false) and print speed when user clicks on a button. Additional conditions: a) user can continuously press button so we may get false positive. b) There may be some interference in this stream so consider that as well.