Testsigma interview question

Regarding automation testing and to write some sample codes in any programming language