Build a Molecule

This problem simulates the creation of water molecule by grouping three threads representing Hydrogen and Oxygen atoms.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.