Boolean function on C++ : I am working on a assignment that deals with boolean function on C++. It is asking for us to write a boolean function that asks user to type in character X, O , L, or I. But if the user type in lowercase of those letters it will also accept the input and if they type a word (string) that starts with one of those letters it will also accept the input.

I am just confused on how to provide a condition that involves all those.. Help please? I know the start off looks like this and it includes if-else statement but I am confused on what I need to put..

    bool isValidOption(char option, string & valOptions) {
	return true;
    }