some test easy algorithm