text based solution for submission