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 80+ hands-on prep courses.