Search This Blog

Thursday, August 31, 2017

Airtel/Wynk Automation Testing Interview Question with Solution. (Java)

Hello World!
Recently I appeared for an interview at Airtel Wynk office, Gurgaon for the role of Automation Test Engineer. Here is the Automation testing interview question with free solution:

Question: Suppose you have an Integer "4296"
Step 1: Find smallest digit in integer i.e. '2' in "4296"
Step 2: Subtract smallest digit from all digits of the integer i.e. "New Integer" becomes: (4-2)(2-2)(9-2)(6-2) = "2074"
Step3: Now, Add all digits of New integer and print the sum i.e. 2+0+7+4 = "13"

Here is the Solution: