Question: How to write intervals using inequality notation?

Is there a way to put in intervals and get the output as inequality Notation? Something like this ->

Please Wait...