Split the Array with a Per-Group Setup Fee

Company: INFOSYS

Difficulty: medium