Coursera interview question

Triplets HR Question