Company: Myntra Ramp up SDE intern_15april
Difficulty: medium
Problem Statement You are going to develop a smart home automation system that means different devices will be connected through voice. However, the system has to incorporate means of determining if the given voice command contains only lowercase letters because for security reasons the system can only accept lowercase voice commands. Write a program to check if a given voice command (string) is entirely lowercase and contains no consecutive repeating characters (like "aa", "bb", etc.). If both conditions are satisfied, the program should return "VALID"; otherwise, it should return "INVALID". Input Format A single string represents the voice command. Output Format Print "VALID" if the entire string is in lowercase and has no consecutive repeating characters else print "INVALID" if the string has any uppercase letters or consecutive repeating characters. Constraints 1 ≤ string length ≤ 10^2 The string may only contain alphabetic characters (a-z, A-Z). Sample case 1 Testcase Input