Solution for Spartez "Find subarray in array" task.