Java Split String By Character Interview