Returns numeric value of a subsequence of s . The subsequence to be picked is decided using bit pattern of num ( We pick all thosedigits for which there is a set bit in num )
< ? php function findSubSequence ( $ s , $ num ) {