SMS group Interview Question

Write a program in STL language about on/Off motor with single push button