Count Ways to Form the Longest Run of Ones

Company: SAP Labs

Difficulty: medium