Write a method that will try to remove the first 2 chars of a string but there are two exceptions. The first exception is to keep the first char if it is an ‘a’ and the second exception is to keep the second char if it is a ‘b’.

Java programming code THAT IS CORRECT

Use below to check if your programming code is correct.
removeFirst2("batman") → "tman"
removeFirst2("abracadabra") → "abracadabra"
removeFirst2("apple") → "aple"

public static String removeFirst2(String str)
{

}