public static void Main()
Console.WriteLine("Enter number");
var ans=Program.solution(Convert.ToInt32(65));
public static int solution(int N)
string bits = Convert.ToString(N, 2).TrimEnd('0');
int longest = 0, count = 0;
if (t == '0' && count > 0)
if (count > longest) longest = count;