Because the problem says valence electrons are transferred from one atom to the other, it has to be an "ionic" bond (it's not the "covalent" bond because electrons aren't shared with each other). As a matter of fact, an "ionic" bond is formed when a metal combines with a non-metal or a metalloid. Strontium (Sr) is an alkaline earth metal, which is also a metal, and Oxygen (O) is a non-metal. These two atoms will perfectly form (an) "ionic" bond(s). Therefore, option (2) O and Sr is correct.
Hope this would help :))