Collect all yellow stars and exit. You have to collect only the arrows indicating the same gravity direction.